package com.wash.car.biz;

import com.github.pagehelper.PageInfo;
import com.wash.car.dao.model.*;

import java.util.List;

public interface OrderServer {

    /**
     * 添加订单
     *
     * @param model
     */
    void add(OrderAddModel model);

    /**
     * 删除订单
     *
     * @param model
     */
    void del(OrderDeleteModel model);

    /**
     * 更新状态
     *
     * @param model
     */
    void updateState(OrderUpdateModel model);

    /**
     * 查询车辆信息
     *
     * @param userId 用户id
     * @return
     */
    List<String> findVehicles(Long userId);


    /**
     * 查询门店的排队数量
     *
     * @param storeId
     * @return
     */
    StoreQueueModel findStoreQueueCount(Long storeId);

    /**
     * 查询订单明细
     *
     * @param model
     * @return
     */
    List<OrderDetailsModel> findOrderDetails(OrderWhereModel model);


    /**
     * 查询订单排队明细
     *
     * @param model
     * @return
     */
    List<OrderDetailsModel> findOrderQueueDetails(OrderWhereModel model);


    /**
     * 分页查询订单
     *
     * @param model
     * @return
     */
    PageInfo<OrderDetailsModel> page(OrderPageWhereModel model);


}
